'use strict';

module.exports = {
  up: async (queryInterface, Sequelize) => {
    // 插入标签数据
    await queryInterface.bulkInsert('tags', [
      // 颜色标签
      {
        id: 1,
        name: '白色',
        type: 'color',
        color: '#FFFFFF',
        description: '纯白色',
        sort_order: 1,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 2,
        name: '黑色',
        type: 'color',
        color: '#000000',
        description: '纯黑色',
        sort_order: 2,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 3,
        name: '蓝色',
        type: 'color',
        color: '#4169E1',
        description: '蓝色系',
        sort_order: 3,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 4,
        name: '灰色',
        type: 'color',
        color: '#808080',
        description: '灰色系',
        sort_order: 4,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 5,
        name: '米色',
        type: 'color',
        color: '#F5F5DC',
        description: '米色系',
        sort_order: 5,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 6,
        name: '棕色',
        type: 'color',
        color: '#8B4513',
        description: '棕色系',
        sort_order: 6,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },

      // 风格标签
      {
        id: 11,
        name: '简约',
        type: 'style',
        color: '#E8F4FD',
        description: '简约风格',
        sort_order: 1,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 12,
        name: '休闲',
        type: 'style',
        color: '#E8F5E8',
        description: '休闲风格',
        sort_order: 2,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 13,
        name: '商务',
        type: 'style',
        color: '#F0F0F0',
        description: '商务风格',
        sort_order: 3,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 14,
        name: '时尚',
        type: 'style',
        color: '#FFE4E1',
        description: '时尚风格',
        sort_order: 4,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 15,
        name: '复古',
        type: 'style',
        color: '#DEB887',
        description: '复古风格',
        sort_order: 5,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },

      // 场合标签
      {
        id: 21,
        name: '日常',
        type: 'occasion',
        color: '#F0F8FF',
        description: '日常穿着',
        sort_order: 1,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 22,
        name: '工作',
        type: 'occasion',
        color: '#F5F5F5',
        description: '工作场合',
        sort_order: 2,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 23,
        name: '约会',
        type: 'occasion',
        color: '#FFB6C1',
        description: '约会场合',
        sort_order: 3,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 24,
        name: '聚会',
        type: 'occasion',
        color: '#FFD700',
        description: '聚会场合',
        sort_order: 4,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 25,
        name: '运动',
        type: 'occasion',
        color: '#98FB98',
        description: '运动场合',
        sort_order: 5,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },

      // 季节标签
      {
        id: 31,
        name: '春季',
        type: 'season',
        color: '#98FB98',
        description: '春季穿着',
        sort_order: 1,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 32,
        name: '夏季',
        type: 'season',
        color: '#FFE4B5',
        description: '夏季穿着',
        sort_order: 2,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 33,
        name: '秋季',
        type: 'season',
        color: '#DEB887',
        description: '秋季穿着',
        sort_order: 3,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 34,
        name: '冬季',
        type: 'season',
        color: '#B0E0E6',
        description: '冬季穿着',
        sort_order: 4,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 35,
        name: '四季',
        type: 'season',
        color: '#F0F0F0',
        description: '四季通用',
        sort_order: 5,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },

      // 材质标签
      {
        id: 41,
        name: '棉质',
        type: 'material',
        color: '#F5F5DC',
        description: '棉质材料',
        sort_order: 1,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 42,
        name: '丝绸',
        type: 'material',
        color: '#FFF8DC',
        description: '丝绸材料',
        sort_order: 2,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 43,
        name: '羊毛',
        type: 'material',
        color: '#FFFAF0',
        description: '羊毛材料',
        sort_order: 3,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 44,
        name: '牛仔',
        type: 'material',
        color: '#4682B4',
        description: '牛仔材料',
        sort_order: 4,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 45,
        name: '皮革',
        type: 'material',
        color: '#8B4513',
        description: '皮革材料',
        sort_order: 5,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },

      // 品牌标签
      {
        id: 51,
        name: 'UNIQLO',
        type: 'brand',
        color: '#FF0000',
        description: '优衣库品牌',
        sort_order: 1,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 52,
        name: 'ZARA',
        type: 'brand',
        color: '#000000',
        description: 'ZARA品牌',
        sort_order: 2,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 53,
        name: 'H&M',
        type: 'brand',
        color: '#E50000',
        description: 'H&M品牌',
        sort_order: 3,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 54,
        name: "Levi's",
        type: 'brand',
        color: '#003DA5',
        description: "Levi's品牌",
        sort_order: 4,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
      {
        id: 55,
        name: 'Nike',
        type: 'brand',
        color: '#FF6600',
        description: 'Nike品牌',
        sort_order: 5,
        is_active: true,
        created_at: new Date(),
        updated_at: new Date(),
      },
    ]);
  },

  down: async (queryInterface, Sequelize) => {
    await queryInterface.bulkDelete('tags', null, {});
  },
};
